package com.ncdnapp.config;

import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;
import org.redisson.api.RedissonClient;
import org.redisson.solon.RedissonClientOriginalSupplier;

@Configuration
public class RedissonConfig {
    @Bean(value = "redisDs1", typed = true)
    public RedissonClient demo1(@Inject("${redis.ds1}") RedissonClientOriginalSupplier supplier) {
        return supplier.get();
    }
}
